package o;

import com.huawei.appgallery.appcomment.impl.bean.CommentsCache;
import java.util.List;

public final class bdc {
    private static final Object ˋ = new Object();
    private static bdc ˎ = null;
    public cfu ˏ = euc.ˊ().ʽ("cachedComment");

    private bdc() {
    }

    public static bdc ˊ() {
        bdc o_bdc;
        synchronized (ˋ) {
            if (ˎ == null) {
                ˎ = new bdc();
            }
            o_bdc = ˎ;
        }
        return o_bdc;
    }

    public void ˊ(CommentsCache commentsCache) {
        bcb.ˋ.ˋ("CommentsCacheDAO", "insert CommentsCache");
        this.ˏ.ˎ((cfr) commentsCache);
    }

    public void ˋ(String str, String str2) {
        bcb.ˋ.ˋ("CommentsCacheDAO", "delete cached comment:" + str + "," + str2);
        this.ˏ.ˋ("appId_=? and version_=?", new String[]{str, str2});
    }

    public List<CommentsCache> ˊ(String str, String str2) {
        return this.ˏ.ˋ(CommentsCache.class, "appId_=? and version_=?", new String[]{str, str2}, null, null);
    }
}
